// const express = require('express')
const proxy = require('http-proxy-middleware')
// proxy middleware options
// const options = {
//   target: 'https://m.jf.10010.com', // target host
//   changeOrigin: true, // needed for virtual hosted sites
//   ws: true, // proxy websockets
//   pathRewrite: {
//     '^/proxy': '/', // rewrite path
//   },
// }
const options = {
  ws: true,
  changeOrigin: true,
  target: "http://www.emoding.com",
  pathRewrite: {
    "^/proxy/": "/"
  }
}

// const
//  exampleProxy
module.exports = proxy(options);
